﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Travianer.IController;
using Travianer.Factory;

namespace Travianer
{
    public partial class MainForm : Form
    {
        ILogicController lc;
        IDataController dc;
        IHandleController hc;

        public MainForm()
        {
            InitializeComponent();
            GetInstance();
            LoadForm();
        }

        private void GetInstance()
        {
            lc = ControllerHelper.CreateLogicController();
            dc = ControllerHelper.CreateDataController();
            hc = ControllerHelper.CreateHandleController();
        }

        private void LoadForm()
        {
            txtServerLocation.Text = "http://travmania.org/";
            txtUserName.Text = "NightElf";
            txtPassword.Text = "1234567890";            
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            //hc.Login(txtServerLocation.Text.Trim(), txtUserName.Text.Trim(), txtPassword.Text.Trim());
        }
    }
}
